package org.gr.ias.common.entity;

import java.io.Serializable;

public class SysDict implements Serializable {
    /** ID*/
    private String id;

    /** 参数类型*/
    private String paramLevel;

    /** 参数类型描述*/
    private String paramLevelDesc;

    /** 参数key*/
    private String paramKey;

    /** 参数值*/
    private String paramValue;

    /** 过滤属性1*/
    private String filterVal1;

    /** 过滤属性2*/
    private String filterVal2;

    /** 排序*/
    private Integer paramOrder;

    /** 状态*/
    private String status;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getParamLevel() {
        return paramLevel;
    }

    public void setParamLevel(String paramLevel) {
        this.paramLevel = paramLevel == null ? null : paramLevel.trim();
    }

    public String getParamLevelDesc() {
        return paramLevelDesc;
    }

    public void setParamLevelDesc(String paramLevelDesc) {
        this.paramLevelDesc = paramLevelDesc == null ? null : paramLevelDesc.trim();
    }

    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey == null ? null : paramKey.trim();
    }

    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue == null ? null : paramValue.trim();
    }

    public String getFilterVal1() {
        return filterVal1;
    }

    public void setFilterVal1(String filterVal1) {
        this.filterVal1 = filterVal1 == null ? null : filterVal1.trim();
    }

    public String getFilterVal2() {
        return filterVal2;
    }

    public void setFilterVal2(String filterVal2) {
        this.filterVal2 = filterVal2 == null ? null : filterVal2.trim();
    }

    public Integer getParamOrder() {
        return paramOrder;
    }

    public void setParamOrder(Integer paramOrder) {
        this.paramOrder = paramOrder;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysDict other = (SysDict) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getParamLevel() == null ? other.getParamLevel() == null : this.getParamLevel().equals(other.getParamLevel()))
            && (this.getParamLevelDesc() == null ? other.getParamLevelDesc() == null : this.getParamLevelDesc().equals(other.getParamLevelDesc()))
            && (this.getParamKey() == null ? other.getParamKey() == null : this.getParamKey().equals(other.getParamKey()))
            && (this.getParamValue() == null ? other.getParamValue() == null : this.getParamValue().equals(other.getParamValue()))
            && (this.getFilterVal1() == null ? other.getFilterVal1() == null : this.getFilterVal1().equals(other.getFilterVal1()))
            && (this.getFilterVal2() == null ? other.getFilterVal2() == null : this.getFilterVal2().equals(other.getFilterVal2()))
            && (this.getParamOrder() == null ? other.getParamOrder() == null : this.getParamOrder().equals(other.getParamOrder()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getParamLevel() == null) ? 0 : getParamLevel().hashCode());
        result = prime * result + ((getParamLevelDesc() == null) ? 0 : getParamLevelDesc().hashCode());
        result = prime * result + ((getParamKey() == null) ? 0 : getParamKey().hashCode());
        result = prime * result + ((getParamValue() == null) ? 0 : getParamValue().hashCode());
        result = prime * result + ((getFilterVal1() == null) ? 0 : getFilterVal1().hashCode());
        result = prime * result + ((getFilterVal2() == null) ? 0 : getFilterVal2().hashCode());
        result = prime * result + ((getParamOrder() == null) ? 0 : getParamOrder().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", paramLevel=").append(paramLevel);
        sb.append(", paramLevelDesc=").append(paramLevelDesc);
        sb.append(", paramKey=").append(paramKey);
        sb.append(", paramValue=").append(paramValue);
        sb.append(", filterVal1=").append(filterVal1);
        sb.append(", filterVal2=").append(filterVal2);
        sb.append(", paramOrder=").append(paramOrder);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}